package com.mokio.service.impl;

import com.mokio.entity.Orderdetail;
import com.mokio.entity.OrderdetailExample;
import com.mokio.mapper.OrderdetailMapper;
import com.mokio.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: xiaomishop
 * @ClassName OrderService
 * @description:
 * @author: mokio
 * @create: 2025−01-01 20:20
 * @Version 1.0
 **/
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderdetailMapper orderdetailMapper;

    @Override
    public List<Orderdetail> findOrdersByUserId(Integer uid) {
        return orderdetailMapper.selectByExample(new OrderdetailExample());
    }
}